package com.yjc.springcloud.alibaba.service;

import com.yjc.springcloud.alibaba.domain.CommonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.math.BigDecimal;

/**
 * @author shkstart
 * @create 2022-08-17 21:14
 */
@FeignClient("seata-account-service")
public interface AccountService {

    @GetMapping("/account/decrease")
    public CommonResult decreaseAccount(@RequestParam("userId") Long userId, @RequestParam("money") BigDecimal money);
}
